#ifndef TOKEN_H
#define TOKEN_H

/*
 * token.h
 *
 * Version 1.0
 * Author: rtp
 *
 * Description: interface for the token structure
 *
 */

#include "parameters.h"

enum tokenType{TK_TYPE, TK_RESEVED_WORD, TK_IDENTIFIER, TK_NUMBER, TK_SINAL, TK_TEXT, TK_OPERATION};
typedef enum tokenType tType;

typedef struct {
	tType type;
	int index;
	char* value; //for identifiers only
} tokenStruct;

typedef tokenStruct* Token;

void tk_print(Token t);

#endif
